<?php
session_start();
function __autoload($className)
	{
    	require_once('../class/' . $className . '.class.php');
	}
session::need_manage();
$filename =$_GET["filename"];
$fp = fopen($filename, "rb");
header("Content-type: application/octet-stream");
header("Content-length: " . filesize($filename));
header('Content-disposition: attachment; filename="'.$filename.'"');
fpassthru($fp);
fclose($fp);
unlink($filename);

$Country=$_SESSION["countrydel"];
$DelCc=database::Delete('ccinfo',array(
'country' => $Country,
'orderid' => 0,
'userid' => 0
));
echo "Đã Xóa CC có country là $Country rùi nhé ";

?>